package com.ruoyi.dataserver.controller;

import com.ruoyi.dataserver.service.IDataManagerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName
 * @Package com.lab.dataserver.controller
 * @ClassName DataManagerController
 * @Description 数据处理
 * @Company lab
 * @Author wangzhx
 * @Date 2022/3/3  18:03
 * @UpdateUser
 * @UpdateDate
 * @UpdateRemark
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/dataManagerController")
@Slf4j
public class DataManagerController {

    @Autowired
    private IDataManagerService datamanagerService;

    /**
     * @Title  点表截取后六位  数据处理接口
     * @Description
     * @return
     * @author wangzhx
     * @date 2022/6/10 0010 10:57
     */
    @RequestMapping(value = "/deal2",method = RequestMethod.POST)
    public String deal(){
        String result = datamanagerService.deal();
        return result;
    }
    /**
     * @Title  为点表添加node字段值接口
     * @Description
     * @return
     * @author wangzhx
     * @date 2022/6/10 0010 10:57
     */
    @RequestMapping(value = "/node1",method = RequestMethod.POST)
    public String node(){
        String result = datamanagerService.node();
        return result;
    }
    /**
     * @Title  为线表添加snodeid、enodeid字段值接口
     * @Description
     * @return
     * @author wangzhx
     * @date 2022/6/10 0010 10:57
     */
    @RequestMapping(value = "/line3",method = RequestMethod.POST)
    public String line(){
        String result = datamanagerService.line();
        return result;
    }
}
